package com.atguigu.common.constant;

/**
 * feign远程调用常量类
 */
public class FeignConstant {
    //region 微服务名
    public static final String AUTH_SERVICE="gulimall-auth-server";
    public static final String PROEUCT_SERVICE="gulimall-product";
    public static final String CART_SERVICE="gulimall-cart";
    public static final String COUPON_SERVICE="gulimall-coupon";
    public static final String MEMBER_SERVICE="gulimall-member";
    public static final String ORDER_SERVICE="gulimall-order";
    public static final String SEARCH_SERVICE="gulimall-search";
    public static final String WARE_SERVICE="gulimall-ware";
    //endregion

    //region controller请求前缀常量 controller_{conrtoller}
    public static final String CONTROLLER_AUTH_LOGIN="/login";
    public static final String CONTROLLER_PROEUCT_SKUINFO="/product/skuinfo";
    public static final String CONTROLLER_PROEUCT_SKUSALEATTRVALUE="/product/skusaleattrvalue";
    public static final String CONTROLLER_PROEUCT_SPUINFO="/product/spuinfo";
    public static final String CONTROLLER_WARE_WARESKU="/ware/waresku";
    public static final String CONTROLLER_ORDER_ORDER="/order/order";
    public static final String CONTROLLER_COUPON_SECKILLSESSION="/coupon/seckillsession";
    //endregion

    //region 具体请求路径 method_{conrtoller}_{method}
    public static final String METHOD_PROEUCT_SKUINFO_INFO="/info/{skuId}";
    public static final String METHOD_PROEUCT_SKUINFO_PRICE="/{skuId}/price";
    public static final String METHOD_PROEUCT_SKUSALEATTRVALUE_STRINGLIST="/stringlist/{skuId}";
    public static final String METHOD_PROEUCT_SPUINFO_SKUID="/skuId/{id}";
    public static final String METHOD_WARE_WARESKU_HASSTOCK="/hasstock";
    public static final String METHOD_WARE_WARESKU_LOCK_ORDER="/lock/order";
    public static final String METHOD_ORDER_ORDER_INFO_BY_ORDERSN="/info/{orderSn}";
    public static final String METHOD_COUPON_SECKILLSESSION_LAST3DAYSESSION="/last3DaySession";
    //endregion
}
